<?php

namespace app\api\controller;

use app\api\model\DepartmentModel;
use app\BaseController;

class Department extends BaseController
{

    public function depart_list(){
        $depart = new DepartmentModel();
//        return $this->rtnSuccess($depart->list());
        return json(['list'=>$depart->list()]);
    }
}